package org.example.controller;

import org.example.model.ExampleModel;
import org.example.service.ExampleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class ExampleController {
    @Autowired
    private ExampleService exampleService;
    @RequestMapping("t1")
    public void t1() {
        List<ExampleModel> data = exampleService.getData();
        System.out.println(data);
    }



}
